<?php

include("lib/Article_manage.class.php");

$op = $_GET['op'];
if(isset($_GET['id'])) $id = $_GET['id'];
if(isset($_GET['step'])) $step = $_GET['step'];

switch($op)
{
	case "edit":
		$article = new Article_manage($id);
		$article->edit();
	break;
	case "create":
		$article = new Article_manage(null, $_POST);
		$article->create($step);
	break;
	case "submit":
		$article = new Article_manage(null, $_POST);
		$article->submit($step);
	break;
}
?>	